# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=labwc
pkgver=0.5.2
pkgrel=1
pkgdesc="Wayland stacking compositor"
url="https://github.com/labwc/labwc"
arch="all"
license="GPL-2.0-only"
depends="xwayland"
makedepends="
	cairo-dev
	glib-dev
	libinput-dev
	libxml2-dev
	meson
	pango-dev
	scdoc
	wayland-protocols
	wlroots-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/labwc/labwc/archive/$pkgver/labwc-$pkgver.tar.gz
	remove-aports-git-version.patch"

build() {
	abuild-meson . output -Dman-pages=enabled
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
826ebab6b9b018d10418f2b89304c7ec16ba67b5ecc2cce2b9a61cdd70ae5517cb5f3250c637b1c55dd40847c56ab3b67c7e2963ffd857ae215809f84e444b4d  labwc-0.5.2.tar.gz
08b1c7f45eda434400b61b8cad1d0e800c8f4ecd9e3f93fc42b10f4e8e0e599ed61a7a7e363dfa0acb45b174269278c136a244ec87940e84cc2362cdda5f5ef6  remove-aports-git-version.patch
"
